<template>
  <div class="layout-wrap">
    <div class="layout-content">
      <router-view></router-view>
    </div>

    <van-tabbar v-model="active">
      <van-tabbar-item to="/" icon="home-o">主页</van-tabbar-item>
      <van-tabbar-item to="/public" icon="search">发布</van-tabbar-item>
      <van-tabbar-item to="/message" icon="search" :badge="badge"
        >消息</van-tabbar-item
      >
      <van-tabbar-item to="/me" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {
  name: "LayoutView",
  data() {
    return {
      active: 0,
      badge: 1,
    };
  },
};
</script>